
{extend name="layout/base"}
{block name="title"}职责调整{/block}
{block name="css"}
<link href="__admin_static__/css/plugins/iCheck/custom.css" rel="stylesheet">
{/block}
{block name="head_js"}{/block}
{block name="body"}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>职责调整 <small>您可以调整一个职责，便于服务哦。<br>选填项可以不填哦，如果不填，则默认是上一次设置的内容</small></h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" action="{:url('KfCate/update')}" target="_self">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">职责名</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" placeholder="{$info.name}">
                                <span class="help-block m-b-none">必填)：请输入1-18个字(职责名称不能重复哦)</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" rows="3" name="description"  placeholder="{$info.description}"></textarea>
                                <span class="help-block m-b-none">选填)：请输入1-50个字的描述。</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">职责归类</label>
                            <div class="col-sm-10">
                                <div class="col-sm-4 m-l-n">
                                    <span class="help-block m-b-none">选填)：如果看不到，可以设置下边的数字哦。<input placeholder="默认高度为240，请输入大于240的数字" class="form-control" type="text" onkeyup="javascript:maxHeight(this,'catSelect')"></span>
                                    <br>
                                    <select class="form-control" multiple="" name="parent_id" style="height: 240px;" id="catSelect">
                                        <option value="0" {if condition="$info.parent_id == 0"} selected="selected"{/if}>默认职责</option>
                                        {foreach name="cat_list" item="cat"}
                                        <option value="{$cat.id}" {if condition="$info.parent_id == $cat.id"} selected="selected"{/if}>{$cat.name}</option>
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <input type="hidden" value="{$info.id}" name="id">
                                <button class="btn btn-primary" type="submit">职责跳转</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="__admin_static__/js/jquery.min.js?v=2.1.4"></script>
<script src="__admin_static__/js/bootstrap.min.js?v=3.3.5"></script>
<script src="__admin_static__/js/content.min.js?v=1.0.0"></script>
<script src="__admin_static__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__admin_static__/js/base.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>
{/block}
